// 歌单管理

import request from '@/utils/request'

// 检索全部歌单信息
export const songListFindAllApi = () => request.get<any, any>('./songList')

// 根据歌曲id检索歌单集合
export const songListFindBySongIdApi = (id: any) => request.post<any, any>('./songList/songList/' + id)

// 根据歌单id查询歌单信息
export const songListFindBySongListIdApi = (id: any) => request.post<any, any>('/songList/' + id)

// 查找歌单的全部类型
export const songListFindAllStyleApi = () => request.get<any, any>('/songList/style')

// 条件查询
export const songListFindBySearchApi = (params: any) => request.get<any, any>('/songList/search', { params })

// 新增or修改
export const songListSaveApi = (songListData: any) => request.post<any, any>('/songList', songListData)

// 根据id删除
export const songListDeleteApi = (id: any) => request.delete<any, any>('/songList/' + id)
